﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DE.Class;
using System.Runtime.Serialization;

namespace MoviesDAL
{
    [DataContract]
    public class MovieData:BaseEntityData
    {

        private int movieid;
        private string name;
        private float officialRating;
        private string genre;

        public MovieData(int imovieid, string iname, float iofficialRating, string igenre)
        {
            movieid = imovieid;
            name = iname;
            officialRating = iofficialRating;
            genre = igenre;
        }

        [DataMember]
        public int MovieID
        {
            get { return movieid; }
            set { movieid = value; }
        }

        [DataMember]
        public string MovieName
        {
            get { return name; }
            set { name = value; }
        }

        [DataMember]
        public float OfficialRating
        {
            get { return officialRating; }
            set { officialRating = value; }
        }

        [DataMember]
        public string Genre
        {
            get { return genre; }
            set { genre = value; }
        }

    }
}
